/*
 * 百度在线网络技术（北京）有限公司拥有本软件版权2021并保留所有权利。
 * Copyright 2021, Baidu.com,Inc 2:Baidu Online Network Technology (Beijing) Co.,Ltd,
 * All rights reserved.
 */

package com.azdebugit.cas.test.aqs;

public class ExecuteConsumerProviderNDemoClass {

    public static void main(String[] args) {
//        Thread d1 = new Thread(new SynchronizedConsumerDemo());
//        Thread d2 = new Thread(new SynchronizedProviderDemo());
        // 产生10个生产消费者线程
        for (int i = 0; i < 10; i++) {
            new Thread(new SynchronizedConsumerDemo()).start();
        }
        for (int i = 0; i < 10; i++) {
            new Thread(new SynchronizedProviderDemo()).start();
        }
//        d1.start();
//        d2.start();
    }

}